<template>
	<view class="nav-holder" :style="{ height: navHeight + 'px' }">
		<!-- <slot></slot> -->
	</view>
</template>

<script>
	export default {
		name: 'page-meta',
		data() {
			return {
				navHeight: 0,
				menuButtonInfo: null
			}
		},
		created() {
			// 获取系统信息
			const systemInfo = uni.getSystemInfoSync()
			// 获取胶囊按钮位置信息
			this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()

			// 计算导航栏高度
			// 状态栏高度
			this.navHeight = systemInfo.statusBarHeight - 5
		}
	}
</script>

<style>
	.nav-holder {
		width: 100%;
		/* background-color: #fff; */
	}
</style>